<?php
namespace app\admin\controller\order;

use app\common\service\OrderService;
use think\facade\View;
use think\Request;
class OrderBak {
    /**
     * 分页参数
     * @var mixed
     */
    protected $pagesize;
    /**
     * 初始化参数
     * Order constructor.
     */
    public function __construct()
    {
        $this->pagesize = config('page.pagesize');
    }

    /**
     * 显示订单列表
     * @return string|\think\Response
     */
    public function index()
    {
        View::engine()->layout(false);
        $order=\app\admin\model\order\Order::with('user')
            ->paginate(['list_rows'=>$this->pagesize,'query' => request()->param()])->toArray();
        View::assign(['order'=>$order]);
        return View::fetch();
    }
}